#!/usr/bin/env node


const msg=process.argv[2]
if(process.argv.length!==3){
  console.error('命令格式 cmd base64_string')
  process.exit(1);
}

const buf=Buffer.from(msg,'base64');
const usr_pwd=buf.toString('utf8').split(':');

console.log(`usr name: ${usr_pwd[0]}\npassword:${usr_pwd[1]}`);
